home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 1
/
Merciful - Disc 1.iso
/
software
/
s
/
sas_utilities
/
sasutilities01.dms
/
sasutilities01.adf
/
Commands
/
Common.doc
< prev
next >
Wrap
Text File
|
1992-12-21
|
1KB
|
47 lines
Common(V37) Common(V37)
FORMAT
COMMON [FILE1] file1 [[FILE2] file2] [-1] [-2] [-3]
TEMPLATE
FILE1/A,FILE2,-1/S,-2/S,-3/S
PURPOSE
To select or reject lines common to two sorted files.
SPECIFICATION
The command COMMON reads file1 and file_2, which should be
ordered in the collating sequence of SORT, and produces a
three-column output: lines only in file1; lines only in
file2; and lines in both files.
Switches -1, -2, or -3 suppress printing of the corre-
sponding column. Thus COMMON -1 -2 prints only the lines
common to the two files; COMMON -2 -3 prints only the
lines in the first file but not in the second; COMMON -1
1 -2 -3 is a no-op.
If file2 is not given, the default input will be used.
SEE ALSO
COMPARE(V37), PREPARE(V37), SORT(AmigaDOS), UNIQUE(V37)
UNIX EQUIVALENT
comm(1)
AUTHOR
Torsten Poulin (torsten@diku.dk)
UNRESTRICTIONS
COMMON is free; anyone may redistribute copies of COMMMON
to anyone under the terms stated in the GNU General Public
Licence, a copy of which accompanies each copy of COMMON.
Torsten Poulin encourages you to improve and extend COM-
MON, and urges that you contribute your extensions to the
world.
Common version 37.5 11 February 1993